<?php
/**
 * This is LilBlogsComments's route configuration file.
 *
 * Establish routes to LilBlogsComments's controllers and their actions.
 *
 * @copyright     Copyright 2008-2010, LilCake.net
 * @link          http://lilcake.net LilCake.net
 * @package       lil.plugins.lil_blogs
 * @subpackage    lil.plugins.lil_blogs.config
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
	Router::parseExtensions('rss');
	
	// make sure blog comments still get routed properly
	Router::connect(
		'/lil_blogs/comments/add',
		array(
			'plugin'     => 'lil_blogs_comments',
			'controller' => 'comments',
			'action'     => 'add'
		)
	);
	
	// route post comments (rss)
	Router::connect(
		'/lil_blogs/comments/:blog/:post',
		array(
			'plugin'     => 'lil_blogs_comments',
			'controller' => 'comments',
			'action'     => 'index',
		)
	);

	// route blog comments (rss)
	Router::connect(
		'/lil_blogs/comments/:blog',
		array(
			'plugin'     => 'lil_blogs_comments',
			'controller' => 'comments',
			'action'     => 'index',
		)
	);
?>